package com.yss.reportworld.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * 报表世界说明信息对象 report_world_description
 *
 * @author yss
 * @date 2023-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("report_world_description")
public class Description extends BaseEntity {

    /**
     * 技术主键
     */
    @ExcelIgnore
    @TableId("ID")
    private String id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    @TableField("NAME")
    private String name;
    /**
     * 中文名称
     */
    @ExcelProperty(value = "中文名称")
    @TableField("CHINESE_NAME")
    private String chineseName;
    /**
     * 数据类型
     */
    @ExcelProperty(value = "数据类型")
    @TableField("TYPE")
    private String type;

    /**
     * 说明
     */
    @ExcelProperty(value = "说明")
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 版本号
     */
    @ExcelProperty(value = "版本号")
    @TableField("VERSION")
    private String version;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS")
    private Integer status;

    // 导出的时候选择 数据的主键
    @ExcelIgnore
    @TableField(exist = false)
    private String ids;

}
